package com.von.excel.exportExcel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author xiaosai
 * @version 1.0
 * @date 2021/7/12 17:08
 * @describe
 * @className
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@HeadRowHeight(20)
public class ExDictionaryItemExcel {
    @ExcelProperty(index = 0,value = "id")
    private Integer id;

    /**
     * 编码
     */
    @ExcelProperty(index = 1,value = "编码")
    private String code;

    /**
     * 名称
     */
    @ExcelProperty(index = 2,value = "名称")
    private String value;

    /**
     * 备注
     */
    @ExcelProperty(index = 3,value = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @ColumnWidth(30)
    @ExcelProperty(index = 4,value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ColumnWidth(30)
    @ExcelProperty(index = 5,value = "更新时间")
    private LocalDateTime updateTime;
}
